<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
	android:background="#FFFFFF"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="org.notabug.lifeuser.moviedb.CastActivity"
    tools:showIn="@layout/app_bar_cast">

    <ImageView
        android:id="@+id/actorImage"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:scaleType="centerCrop"
        android:background="@color/colorPrimary" />

    <de.hdodenhof.circleimageview.CircleImageView
        android:id="@+id/actorIcon"
        android:layout_width="150dip"
        android:layout_height="150dip"
        android:layout_marginTop="75dp"
        android:layout_centerHorizontal="true"
        android:scaleType="centerCrop"
		android:visibility="gone"
        android:background="@color/colorPrimary" />

    <RelativeLayout
        android:id="@+id/actorDetails"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/actorImage"
        android:layout_margin="16dp"
        android:layout_centerHorizontal="true">

        <TextView
            android:id="@+id/actorName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:textSize="25dp"
            android:textStyle="bold"
            android:textColor="@color/colorBlack" />

        <TextView
            android:id="@+id/actorPlaceOfBirth"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/actorName" />

        <TextView
            android:id="@+id/actorBirthday"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/actorPlaceOfBirth" />

    </RelativeLayout>

    <View
        android:id="@+id/firstDivider"
        android:layout_width="match_parent"
        android:layout_height="2dp"
        android:layout_below="@id/actorDetails"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp"
        android:background="?android:attr/listDivider" />

    <TextView
        android:id="@+id/actorBiography"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/firstDivider"
        android:layout_margin="16dp"
        android:ellipsize="end"
        android:maxLines="8" />
    
    <android.support.v7.widget.RecyclerView
        android:id="@+id/movieRecyclerView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/actorBiography"
        android:scrollbars="none" />
</RelativeLayout>
